package org.code.mallspringboot.pojo;

import org.code.mallspringboot.pojo.*;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;

import java.util.Date;
import java.util.List;

/**
 * 优惠券领取历史详情（包括优惠券信息和关联关系）
 *
 * @author jamie
 */
@Getter
@Setter
public class SmsCouponHistoryDetail extends SmsCouponHistory {

    private int id;

    private int couponId;

    private int memberId;

    private String couponCode;

    @Schema(title = "领取人昵称")
    private String memberNickname;

    @Schema(title = "获取类型：0->后台赠送；1->主动获取")
    private Integer getType;

    private Date createTime;

    @Schema(title = "使用状态：0->未使用；1->已使用；2->已过期")
    private Integer useStatus;

    @Schema(title = "使用时间")
    private Date useTime;

    @Schema(title = "订单编号")
    private Long orderId;

    @Schema(title = "订单号码")
    private String orderSn;

    @Schema(title = "相关优惠券信息")
    private SmsCoupon coupon;

    @Schema(title = "优惠券关联商品")
    private List<SmsCouponProductRelation> productRelationList;

    @Schema(title = "优惠券关联商品分类")
    private List<SmsCouponProductCategoryRelation> categoryRelationList;
}